home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Disc to the Future 2
/
Disc to the Future Part II Programmer's Reference (Wayzata Technology)(6013)(1992).bin
/
MAC
/
THINKC
/
4_0
/
ORBMECHD
/
ORBMECH.H
< prev
next >
Wrap
Text File
|
1991-09-12
|
3KB
|
165 lines
#define ABOUT_ALERT 2000
#define MSNG_RSRC_ALERT 2001
#define NOT_YET_ALERT 2002
#define FILE_ERROR_ALERT 2003
#define PARAM_1 2007
#define PARAM_3 2008
#define INTERRUPT 2010
#define REMOVE_ALL_EVENTS 0
#define NIL_POINTER 0L
#define WNE_TRAP_NUM 0x60
#define UNIMPL_TRAP_NUM 0x9F
#define MIN_SLEEP 0L
#define NIL_MOUSE_REGION 0L
#define DRAG_THRESHOLD 3
#define S_BAR_WIDTH 15
#define NULL 0L
#define MOVE_TO_FRONT 0L
#define WINDOW_ID 1000
/* menu constants */
#define APPLE_MENU_ID 1000
#define FILE_MENU_ID 1001
#define EDIT_MENU_ID 1002
#define CALCULATIONS_MENU_ID 1003
#define TUTORIALS_MENU_ID 1004
#define PARAMETER_MENU_ID 1005
#define EARTH_MENU_ID 1006
#define SUN_MENU_ID 1007
#define APPLE_MENU 0
#define FILE_MENU 1
#define EDIT_MENU 2
#define CALCULATIONS_MENU 3
#define TUTORIALS_MENU 4
#define PARAMETER_MENU 5
#define ABOUT_ITEM 1
#define NEW_FILE 1
#define OPEN_FILE 2
#define CLOSE_FILE 3
#define SAVE_FILE 4
#define SAVE_AS 5
#define REVERT_FILE 6
#define PAGE_SETUP 7
#define PRINT_FILE 8
#define QUIT_APPL 9
#define CUT_COMMAND 1
#define COPY_COMMAND 2
#define PASTE_COMMAND 3
#define LAMBERT 1
#define HILLS 2
#define KEPLER 3
#define HOHMANN 4
#define HELP 1
#define LAM_HELP 2
#define HILLS_HELP 3
#define KEP_HELP 4
#define HOH_HELP 5
#define EARTH 1
#define SUN 2
/* file save alert items */
#define AA_SAVE 1
#define AA_DISCARD 2
#define AA_CANCEL 3
/* dialogue rsrc ids */
#define LAMBERT_ID 1000
#define HILLS_ID 1001
#define KEPLER_ID 1002
#define HOHMANN_ID 1003
#define HELP_DIA_ID 1004
#define LAM_H_DIA_ID 1005
#define HILLS_H_DIA_ID 1008
#define KEP_H_DIA_ID 1006
#define HOH_H_DIA_ID 1007
/* parameter values */
#define EARTH_CONSTANT 3.986e5
#define SUN_CONSTANT 1.327e11
/* lambert dlg items */
#define CALC_BUT 1
#define TUTORIAL_BUT 2
#define CANCEL_BUT 3
#define KM_SEC 4
#define MI_HR 5
#define AU_YR 6
#define RADIANS 7
#define DEGREES 8
#define RAD_1 13
#define RAD_2 14
#define THETA 15
#define TIME 16
#define A 17
#define E 18
/* hill's eqns dlg items */
#define ORB_RAD 7
#define FLIGHT_TIME 8
#define EPOCH_DIFF 10
#define ALT_DIFF 9
#define VX 11
#define VY 12
#define DVIX 13
#define DVIY 14
#define DVFX 15
#define DVFY 16
#define DVT 17
/* hohmann transfer dlg items */
#define KM_SEC_O 4
#define MI_HR_O 5
#define AU_YR_O 6
#define RAD_ONE 7
#define RAD_TWO 8
#define D_V_I 9
#define D_V_F 10
#define D_V_T 11
#define FLT_T 12
#define WEDGE 20
#define D_I_INITIAL 22
#define RAD_BUT2 23
#define DEG_BUT2 24
/* kepler's eqn dlg items */
#define RAD_BUT 7
#define DEG_BUT 8
#define TIME_UNK 9
#define F_2_UNK 10
#define A_IN 11
#define E_IN 12
#define F_1 13
#define F_2 14
#define F_TIME 15
/* unit conversion factors */
#define MI_CONV 1.61
#define AU_CONV 1.49e8
#define HR_CONV 3600
#define YR_CONV 3.1536e+7
#define DEG_CONV 57.2957795131
#define PI_VALUE 3.1415926536
#define START_VAR 0.02